package com.erms.lab.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.erms.lab.mapper.LabMajorFourMapper;
import com.erms.lab.domain.LabMajorFour;
import com.erms.lab.service.ILabMajorFourService;
import com.erms.common.core.text.Convert;

/**
 * 专业机房四Service业务层处理
 * 
 * @author smile
 * @date 2020-05-04
 */
@Service
public class LabMajorFourServiceImpl implements ILabMajorFourService 
{
    @Autowired
    private LabMajorFourMapper labMajorFourMapper;

    /**
     * 查询专业机房四
     * 
     * @param equipId 专业机房四ID
     * @return 专业机房四
     */
    @Override
    public LabMajorFour selectLabMajorFourById(Long equipId)
    {
        return labMajorFourMapper.selectLabMajorFourById(equipId);
    }

    /**
     * 查询专业机房四列表
     * 
     * @param labMajorFour 专业机房四
     * @return 专业机房四
     */
    @Override
    public List<LabMajorFour> selectLabMajorFourList(LabMajorFour labMajorFour)
    {
        return labMajorFourMapper.selectLabMajorFourList(labMajorFour);
    }

    /**
     * 新增专业机房四
     * 
     * @param labMajorFour 专业机房四
     * @return 结果
     */
    @Override
    public int insertLabMajorFour(LabMajorFour labMajorFour)
    {
        return labMajorFourMapper.insertLabMajorFour(labMajorFour);
    }

    /**
     * 修改专业机房四
     * 
     * @param labMajorFour 专业机房四
     * @return 结果
     */
    @Override
    public int updateLabMajorFour(LabMajorFour labMajorFour)
    {
        return labMajorFourMapper.updateLabMajorFour(labMajorFour);
    }

    /**
     * 删除专业机房四对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorFourByIds(String ids)
    {
        return labMajorFourMapper.deleteLabMajorFourByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除专业机房四信息
     * 
     * @param equipId 专业机房四ID
     * @return 结果
     */
    @Override
    public int deleteLabMajorFourById(Long equipId)
    {
        return labMajorFourMapper.deleteLabMajorFourById(equipId);
    }
}
